/* eslint-disable @typescript-eslint/no-explicit-any */
import { withInstall } from '@ibiz-template/vue3-util';
import { registerControlProvider } from '@ibiz-template/runtime';
import { FilterSearchBarControl } from './filter-search-bar';
import { FilterSearchBarProvider } from './filter-search-bar.provider';

export * from './interface';
export * from './filter-search-bar.controller';

export const IBizFilterSearchBarControl = withInstall(
  FilterSearchBarControl,
  (_v: any) => {
    _v.component(FilterSearchBarControl.name!, FilterSearchBarControl);
    registerControlProvider(
      'CUSTOM_FILTER_SEARCHBAR',
      () => new FilterSearchBarProvider(),
    );
  },
);
